package com.ldk.base.framework.datasource.generator;

/**
 * 数据表字段实体
 * @author xiangwl
 *
 */
public class TableColumn {
	/**
	 * 列名称如:user_id
	 */
	private String   columnName;
	/**
	 * 列名转化对应的属性名称 userId
	 */
	private String  propertyName;
	/**
	 * 是否可以为null
	 */
	private Boolean  isNullable;
	/**
	 * 数据类型
	 */
	private TableColumnDataType  dataType;
	/**
	 * 数字的长度，用来判断是long int
	 */
	private Integer  precision;
	/**
	 * 是否主键
	 */
	private Boolean  isKey;
	/**
	 * 是否自增
	 */
	private Boolean  isAutoIncrement;
	/**
	 * 列说明
	 */
	private String   comment;
	
	public String getColumnName() {
		return columnName;
	}
	public String getPropertyName() {
		return propertyName;
	}
	public Boolean getIsNullable() {
		return isNullable;
	}
	public TableColumnDataType getDataType() {
		return dataType;
	}
	public Integer getPrecision() {
		return precision;
	}
	public Boolean getIsKey() {
		return isKey;
	}
	public Boolean getIsAutoIncrement() {
		return isAutoIncrement;
	}
	public String getComment() {
		return comment;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}
	public void setIsNullable(Boolean isNullable) {
		this.isNullable = isNullable;
	}
	public void setDataType(TableColumnDataType dataType) {
		this.dataType = dataType;
	}
	public void setPrecision(Integer precision) {
		this.precision = precision;
	}
	public void setIsKey(Boolean isKey) {
		this.isKey = isKey;
	}
	public void setIsAutoIncrement(Boolean isAutoIncrement) {
		this.isAutoIncrement = isAutoIncrement;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}
